import 'package:basic_common/common_exports.dart';
import 'package:basic_home/child/my_schedule_binding.dart';
import 'package:basic_home/child/my_schedule_page.dart';
import 'package:basic_home/home_bing.dart';
import 'package:basic_home/home_page.dart';
import 'package:basic_login/pages/login_binding.dart';
import 'package:basic_login/pages/login_page.dart';
import 'package:basic_main/page/main_tab_binding.dart';
import 'package:basic_main/page/main_tab_page.dart';
import 'package:basic_message/chat/chat_binding.dart';
import 'package:basic_message/chat/chat_page.dart';
import 'package:basic_message/message_binding.dart';
import 'package:basic_message/message_page.dart';
import 'package:basic_message/msglist/msglist_binding.dart';
import 'package:basic_message/msglist/msglist_page.dart';
import 'package:basic_patient/childview/healthrecord/health_record_binding.dart';
import 'package:basic_patient/childview/healthrecord/health_record_page.dart';
import 'package:basic_patient/childview/inforecord/info_record_binding.dart';
import 'package:basic_patient/childview/inforecord/info_record_page.dart';
import 'package:basic_patient/childview/patientdetail/patient_detail_binding.dart';
import 'package:basic_patient/childview/patientdetail/patient_detail_page.dart';
import 'package:basic_patient/childview/patienthealth/patient_health_binding.dart';
import 'package:basic_patient/childview/patienthealth/patient_health_page.dart';
import 'package:basic_patient/childview/patientsearch/patient_search_binding.dart';
import 'package:basic_patient/childview/patientsearch/patient_search_page.dart';
import 'package:basic_patient/patient_binding.dart';
import 'package:basic_patient/patient_page.dart';
import 'package:basic_prescription/myprescdetail/myprescdetail_binding.dart';
import 'package:basic_prescription/myprescdetail/myprescdetail_page.dart';
import 'package:basic_prescription/mypresclist/mypresclist_binding.dart';
import 'package:basic_prescription/mypresclist/mypresclist_page.dart';
import 'package:basic_profile/chilidview/about/about_page.dart';
import 'package:basic_profile/chilidview/authinfo/authinfo_binding.dart';
import 'package:basic_profile/chilidview/authinfo/authinfo_page.dart';
import 'package:basic_profile/chilidview/commonphrases/common_phrases_binding.dart';
import 'package:basic_profile/chilidview/commonphrases/common_phrases_page.dart';
import 'package:basic_profile/chilidview/evaluate/evaluate_binding.dart';
import 'package:basic_profile/chilidview/evaluate/evaluate_page.dart';
import 'package:basic_profile/chilidview/feedback/feed_back_binding.dart';
import 'package:basic_profile/chilidview/feedback/feed_back_page.dart';
import 'package:basic_profile/chilidview/myattention/my_attention_binding.dart';
import 'package:basic_profile/chilidview/myattention/my_attention_page.dart';
import 'package:basic_profile/chilidview/personal/personal_binding.dart';
import 'package:basic_profile/chilidview/personal/personal_page.dart';
import 'package:basic_profile/chilidview/qrscan/qrscan_binding.dart';
import 'package:basic_profile/chilidview/qrscan/qrscan_page.dart';
import 'package:basic_profile/chilidview/resetpwd/resetpwd_binding.dart';
import 'package:basic_profile/chilidview/resetpwd/resetpwd_page.dart';
import 'package:basic_profile/chilidview/setting/setting_binding.dart';
import 'package:basic_profile/chilidview/setting/setting_page.dart';
import 'package:basic_profile/profile_binding.dart';
import 'package:basic_profile/profile_page.dart';
import 'package:basic_register/datareview/datareview_binding.dart';
import 'package:basic_register/datareview/datareview_page.dart';
import 'package:basic_register/realname/realname_binding.dart';
import 'package:basic_register/realname/realname_page.dart';
import 'package:basic_register/register_binding.dart';
import 'package:basic_register/register_page.dart';
import 'package:basic_register/reviewrpogress/reviewpro_binding.dart';
import 'package:basic_register/reviewrpogress/reviewpro_page.dart';
import 'package:basic_router/unkow_page.dart';
import 'package:basic_services/service_manager_binding.dart';
import 'package:basic_services/service_manager_page.dart';
import 'package:basic_sms/sms_code_binding.dart';
import 'package:basic_sms/sms_code_page.dart';
import 'package:basic_team/memberdetail/member_detail_binding.dart';
import 'package:basic_team/memberdetail/member_detail_page.dart';
import 'package:basic_team/my_team_binding.dart';
import 'package:basic_team/my_team_page.dart';
import 'package:basic_team/teammember/team_member_binding.dart';
import 'package:basic_team/teammember/team_member_page.dart';

class AppPages {
  static final pages = [
    // GetPage(
    //     name: AppRoutes.root,
    //     page: () => GlobalInfo.isHasToken() ? MainTabPage() : LoginPage(),
    //     binding: GlobalInfo.isHasToken() ? MainTabBinding() : LoginBinding()),
    GetPage(
        name: AppRoutes.login,
        page: () => LoginPage(),
        binding: LoginBinding()),
    GetPage(
        name: AppRoutes.regist,
        page: () => const RegisterPage(),
        binding: RegisterBinding()),
    GetPage(
        name: AppRoutes.smsCode,
        page: () => const SmsCodePage(),
        binding: SmsCodeBinding()),
    GetPage(
      name: AppRoutes.tabNav,
      page: () => MainTabPage(),
      // binding: MainTabBinding(),
      // bindings: [
      //   MainTabBinding(),
      //   HomeBinding(),
      //   PatientBinding(),
      //   MessageBinding(),
      //   ProfileBinding()
      // ],
    ),
    GetPage(
        name: AppRoutes.home, page: () => HomePage(), binding: HomeBinding()),
    GetPage(
        name: AppRoutes.patient,
        page: () => PatientPage(),
        binding: PatientBinding()),
    GetPage(
        name: AppRoutes.message,
        page: () => const MessagePage(),
        binding: MessageBinding()),
            GetPage(
        name: AppRoutes.profile,
        page: () =>  ProfilePage(),
        binding: ProfileBinding()),
    GetPage(
        name: AppRoutes.mypresclist,
        page: () => const MyPrescListPage(),
        binding: MyPrescListBinding()),
    GetPage(
        name: AppRoutes.myprescdetail,
        page: () => const MyprescDetailPage(),
        binding: MyprescDetailBinding()),
    GetPage(
        name: AppRoutes.realname,
        page: () => const RealNamePage(),
        binding: RealNameBinding()),
    GetPage(
        name: AppRoutes.datareview,
        page: () => const DataReviewPage(),
        binding: DataReviewBinding()),
    GetPage(
      name: AppRoutes.reviewprogress,
      page: () => const ReviewProPage(),
      binding: ReviewProBinding(),
    ),
    GetPage(
        name: AppRoutes.chat, page: () => ChatPage(), binding: ChatBinding()),
    GetPage(
        name: AppRoutes.patientMsgList,
        page: () => MsgListPage(),
        binding: MsgListBinding()),
    GetPage(
        name: AppRoutes.patientDetail,
        page: () => const PatientDetailPage(),
        binding: PatientDetailBinding()),
    GetPage(
        name: AppRoutes.patientSearch,
        page: () => PatientSearchPage(),
        binding: PatientSearchBinding()),
    GetPage(
        name: AppRoutes.serverManager,
        page: () => const ServiceManagerPage(),
        binding: ServiceManagerBinding()),
    GetPage(
      name: AppRoutes.setting,
      page: () => SettingPage(),
      binding: SettingBinding(),
    ),
    GetPage(
      name: AppRoutes.personal,
      page: () => const PersonalPage(),
      binding: PersonalBinding(),
    ),
    GetPage(
        name: AppRoutes.resetpwd,
        page: () => const ResetPwdPage(),
        binding: ResetPwdBinding()),
    GetPage(
        name: AppRoutes.authifo,
        page: () => const AuthInfoPage(),
        binding: AuthInfoBinding()),
    GetPage(
      name: AppRoutes.about,
      page: () => const AboutPage(),
    ),
    GetPage(
        name: AppRoutes.feedback,
        page: () => FeedBackPage(),
        binding: FeedBackBinding()),
    GetPage(
        name: AppRoutes.commonPhrases,
        page: () => const CommonPhrasesPage(),
        binding: CommonPhrasesBinding()),
    GetPage(
        name: AppRoutes.qrscan,
        page: () => QrScanPage(),
        binding: QrScanBinding()),
    GetPage(
        name: AppRoutes.myAttention,
        page: () => MyAttentionPage(),
        binding: MyAttentionBinding()),
    GetPage(
        name: AppRoutes.myteam,
        page: () => MyTeamPage(),
        binding: MyTeamBinding()),
    GetPage(
        name: AppRoutes.teamMember,
        page: () => TeamMemberPage(),
        binding: TeamMemberBinding()),
    GetPage(
        name: AppRoutes.evaluate,
        page: () => EvaluatePage(),
        binding: EvaluateBinding()),
    GetPage(
        name: AppRoutes.memberDetail,
        page: () => MemberDetailPage(),
        binding: MemberDetailBinding()),
    GetPage(
        name: AppRoutes.healthRecord,
        page: () => HealthRecordPage(),
        binding: HealthRecordBinding()),
    GetPage(
        name: AppRoutes.infoRecord,
        page: () => InfoRecordPage(),
        binding: InfoRecordBinding()),
    GetPage(
        name: AppRoutes.mySchedule,
        page: () => MySchedulePage(),
        binding: MyScheduleBinding()),
    GetPage(
        name: AppRoutes.patientHealth,
        page: () => PatientHealthPage(),
        binding: PatientHealthBinding()),
  ];

  static final unKnowPages = GetPage(
    name: AppRoutes.unKnowPage,
    page: () => UnknowPage(),
  );
}
